package com.starwish.starwishblog;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.starwish.starwishblog.mapper")
@EnableSwagger2
@EnableTransactionManagement
public class StarWishBlogApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(StarWishBlogApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
